<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <title>新闻发布系统</title>

    <link rel="stylesheet" href="../index.css">
  </head>
  <body>
  <div class="place">
    <span>位置：</span>
    <ul class="placeul">
      <li><a href="/menu?menu=main">首页</a></li>
    </ul>
  </div>
  <div class="mainindex">
    <div class="welinfo">
      <span><img src="${pageContext.request.contextPath}/static/images/sun.png" alt="天气" /></span>
      <b>${sessionScope.NEWS_SESSION_TUSER.name}  欢迎使用信息管理系统</b>
    </div>

    <div class="welinfo">
      <span><img src="${pageContext.request.contextPath}/static/images/time.png" alt="时间" /></span>

      <i>您上次登录的时间为：<fmt:formatDate
              value="${sessionScope.NEWS_SESSION_TUSER.lastLoginTime}"
              pattern="yyyy-MM-dd HH:mm:ss"></fmt:formatDate>
      </i></br></br>
      <i>   您上次登录的IP地址为：${sessionScope.NEWS_SESSION_TUSER.lastLoginIp}
      </i>
    </div>
  </div>
  </body>
</html>